//
//  CircleView.m
//  TravelDiary
//
//  Created by lanou3g on 15/11/13.
//  Copyright © 2015年 YDB MAC. All rights reserved.
//

#import "CircleView.h"

@implementation CircleView


- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        _cimageView = [[UIImageView alloc]init];
        [self addSubview:_cimageView];
        _textLabel = [[UILabel alloc]init];
        [self addSubview:_textLabel];
    }
    return self;
}
- (void)layoutSubviews{
    [super layoutSubviews];
    _cimageView.frame = CGRectMake(0, 0, 60, 60);
    _cimageView.layer.masksToBounds = YES;
    _cimageView.layer.cornerRadius = 30;
    
    
    _textLabel.frame = CGRectMake(0, 65, 60, 30);
    _textLabel.textAlignment = NSTextAlignmentCenter;
    
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
